var my = new Vue({
	el: "#app",
	data: {
		tab: [{
			id: 1,
			img: '../../template/static/img/my/complete.png',
			text: '已完成'
		}, {
			id: 2,
			img: '../../template/static/img/my/To_be_paid.png',
			text: '待支付'
		}, {
			id: 3,
			img: '../../template/static/img/my/Drop_shipping.png',
			text: '待发货'
		}, {
			id: 4,
			img: '../../template/static/img/my/The_collecting_cargo.png',
			text: '待收货'
		}, ],
		tab2: [{
			img: '../../template/static/img/my/my_wallet.png',
			text: '我的钱包'
		}, {
			img: '../../template/static/img/my/my_promote.png',
			text: '我的推广'
		}, {
			img: '../../template/static/img/my/my_service.png',
			text: '客服'
		}]
	},
	//计算属性
	computed: {},
	//监听属性
	watch: {},
	//钩子函数
	created() {

	},
	mounted() {

	},
	methods: {
		click_tab: function(index) {
			if (index === 0) {
				window.location.href = "the_wallet.html"
			} else if (index === 1) {
				window.location.href = "to_promote.html"
			} else if (index === 2) {
				vant.Toast('客服电话:13683784711');
			}
		},
		click_all() {
			window.location.href = "the_order_details.html"
		},
		click_details(id) { //订单详情
			window.location.href = "the_order_details.html?id=" + id
		}
	}
})
